﻿
namespace PersonLookup.ViewModel
{
    public partial class Person
    {
        partial void MapLastNameFromModel(PersonServiceReference.Person model)
        {
            this.LastName = model.LastName.ToUpper();
        }

        partial void MapLastNameToModel(PersonServiceReference.Person model)
        {
            model.LastName = this.LastName.Substring(0,1).ToUpper() + this.LastName.Substring(1).ToLower();
        }
    }
}
